package com.iswust.mianzhoutong.sign.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @author liushuai
 * @create 2022-07-14 17:38
 */

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor

public class SignDetail {


    /**
     * 数据库自增id
     */
    private Long id;

    /**
     * 用户标识id
     */
    private Integer userId;


    /**
     * 签到日期
     */
    private Date signDate;

    /**
     * 签到类型 1-签到 2-补签
     */
    private Integer signType;


    /**
     * 签到奖励类型:奖励类型( 0-成长值 1-碳币 2-抽奖机会 3-乘车券)
     */
    private Integer rewardType;


    /**
     * 创建时间
     */
    private Date createTime;


    /**
     * 更新时间
     */
    private Date updateTime;

    public SignDetail(Integer userId, Integer signType, Integer rewardType,Date signDate) {
        this.userId = userId;
        this.signType = signType;
        this.rewardType = rewardType;
        this.signDate = signDate;
    }
}
